﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ReporteRendimiento.ascx.vb" Inherits="Content_Reportes_rep_controls_ReporteRendimiento" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<style type="text/css">
    .tablaBusqueda
    {
        width: 1149px;
    }
</style>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<center>
    <asp:label id="lbl_headerUsers" runat="server" cssclass="titulos" text="Reporte Rendimiento"></asp:label>
</center>

<div>
    <table>
        <tr>
            
            <td>
                <asp:Label ID="Label22" runat="server" Text="Desp"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlDespacho" runat="server" Width="120px" ValidationGroup="g1" AutoPostBack="true"></asp:DropDownList>                
            </td>
            <td>
                <asp:Label ID="Label23" runat="server" Text="Inst"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlInstitucion" runat="server" Width="100px" ValidationGroup="g1" AutoPostBack="true"></asp:DropDownList>
            </td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Cliente"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlCliente" runat="server" Width="100px" ValidationGroup="g1"></asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlCliente"
                    Display="none" ErrorMessage="Campo Obligatorio!" ForeColor="red" InitialValue="None" ValidationGroup="g1" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="Server" CloseImageUrl="~/images/close.gif"
                    CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                    TargetControlID="RequiredFieldValidator3" WarningIconImageUrl="~/images/Warning.png" />
            </td>
            <td>
                <asp:Label ID="Label9" runat="server" Text="SaldoI"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="salIni" runat="server" ValidationGroup="g1" Width="100px" ></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Formato no valido."
                     Display="None" ValidationExpression="^[0-99999999999]+(\.[0-9]+)?$" ForeColor="Red" 
                     ControlToValidate="salIni"></asp:RegularExpressionValidator>
                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="salIni" 
                    Enabled="True" ValidChars="0123456789."></asp:FilteredTextBoxExtender>
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender26" runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator2" WarningIconImageUrl="~/images/Warning.png" 
                    Enabled="True" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="salIni"
                        Display="none" ErrorMessage="Campo Obligatorio!" ForeColor="red" ValidationGroup="g1" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="Server" CloseImageUrl="~/images/close.gif"
                        CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                        TargetControlID="RequiredFieldValidator7" WarningIconImageUrl="~/images/Warning.png" />
            </td>
            <td>
                <asp:Label ID="Label10" runat="server" Text="SaldoF"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="salFin" runat="server" ValidationGroup="g1" Width="100px" ></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Formato no valido."
                     Display="None" ValidationExpression="^[0-99999999999]+(\.[0-9]+)?$" ForeColor="Red" 
                     ControlToValidate="salFin"></asp:RegularExpressionValidator>
                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="salFin" 
                    Enabled="True" ValidChars="0123456789."></asp:FilteredTextBoxExtender>
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" CloseImageUrl="~/images/close.gif" CssClass="validatorCallout"
                    HighlightCssClass="validatorCalloutHighlight" TargetControlID="RegularExpressionValidator1" WarningIconImageUrl="~/images/Warning.png" 
                    Enabled="True" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="salFin"
                        Display="none" ErrorMessage="Campo Obligatorio!" ForeColor="red" ValidationGroup="g1" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="Server" CloseImageUrl="~/images/close.gif"
                        CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                        TargetControlID="RequiredFieldValidator1" WarningIconImageUrl="~/images/Warning.png" />
            </td>        
            <td>
                <asp:Label ID="Label4" runat="server" Text="FechaI"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFechaI" runat="server" Width="100px" ValidationGroup="g1"></asp:TextBox>                
                <asp:ImageButton ID="img_cal1" runat="server" ImageUrl="~/images/calendar.gif" />
                <asp:CalendarExtender ID="calendar" runat="server" Format="yyyy-MM-dd" PopupButtonID="img_cal1" TargetControlID="txtFechaI">
                </asp:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFechaI"
                    Display="none" ErrorMessage="Campo Obligatorio!" ForeColor="red" ValidationGroup="g1" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="Server" CloseImageUrl="~/images/close.gif"
                                CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                                TargetControlID="RequiredFieldValidator6" WarningIconImageUrl="~/images/Warning.png" />
            </td>
            <td>
                <asp:Label ID="Label5" runat="server" Text="FechaF"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFechaF" runat="server" Width="100px" ValidationGroup="g1"></asp:TextBox>
                <asp:ImageButton ID="img_cal2" runat="server" ImageUrl="~/images/calendar.gif" />
                <asp:CalendarExtender ID="calendar2" runat="server" Format="yyyy-MM-dd" PopupButtonID="img_cal2"
                        TargetControlID="txtFechaF">
                </asp:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFechaF"
                    Display="none" ErrorMessage="Campo Obligatorio!" ForeColor="red" ValidationGroup="g1" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="Server" CloseImageUrl="~/images/close.gif"
                                CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight" PopupPosition="Right"
                                TargetControlID="RequiredFieldValidator2" WarningIconImageUrl="~/images/Warning.png" />
                <asp:RangeValidator ID="RangeValidator1" runat="server" Display="None" ControlToValidate="txtFechaF" ForeColor="Red" ErrorMessage = "La fecha del operación no puede ser mayor al día de Hoy" />
                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" CloseImageUrl="~/images/close.gif"
                                CssClass="validatorCallout" HighlightCssClass="validatorCalloutHighlight"
                                TargetControlID="RangeValidator1" WarningIconImageUrl="~/images/Warning.png" Enabled="True"/>
            </td>
            <td>
                <asp:ImageButton ID="ImageButton1" runat="server"  ValidationGroup="g1"
                            ImageUrl="~/images/Search44.png" />
            </td>
        </tr>
    </table>    
<%--</asp:Panel>--%>
</div> 
<div>
    <asp:GridView ID="gvRendimiento" runat="server" AllowPaging="True" PageSize="15"
            PagerStyle-CssClass="PagerColor" CssClass="Gridview" 
            HeaderStyle-CssClass="HeaderFooterGridview" 
            FooterStyle-CssClass="HeaderFooterGridview" CellPadding="5" GridLines="None" 
            AlternatingRowStyle-CssClass="GridviewAlt" AutoGenerateColumns="False">
        <AlternatingRowStyle CssClass="GridviewAlt" />
            <Columns>               
                <asp:BoundField DataField="Nombre" HeaderText="Cliente" />
                <asp:BoundField DataField="Contrato" HeaderText="Contrato" />
                <asp:BoundField DataField="Depositos" HeaderText="Depositos" DataFormatString="{0:C5}" />
                <asp:BoundField DataField="Retiros" HeaderText="Retiros" DataFormatString="{0:C5}" />
                <asp:BoundField DataField="Utilidad" HeaderText="Utilidad" DataFormatString="{0:C5}" />
                <asp:BoundField DataField="SaldoP" HeaderText="SaldoP" DataFormatString="{0:C10}" />                
                <asp:BoundField DataField="Rendimiento" HeaderText="Rendimiento"  />                
                
            </Columns>
            <FooterStyle CssClass="HeaderFooterGridview" />
            <HeaderStyle CssClass="HeaderFooterGridview" />
            <PagerStyle CssClass="PagerColor" />
        </asp:GridView>
        
</div>
<div>
    <asp:ImageButton ID="btn_excel" runat="server" ImageUrl="~/images/excel333.png" Visible="false" />    
</div>
